divan/RMuseum/Services/IDivanTranslationService.cs
Anas Rashid 532d005cdb Rename Ganjoor -> Divan throughout the code
Projects (GanjooRazor -> DivanRazor, GanjoorService.sln -> DivanService.sln), files,
folders, classes, namespaces, settings, API routes (/api/divan) and DB tables (Divan*).
External addresses (ganjoor.net, github.com/ganjoor) unchanged. Migrations renamed
consistently (no pending model changes); requires a fresh database.
Upstream RUNNING_LOCALLY/SEMANTIC_SEARCH docs archived unmodified under docs/.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-04 23:49:01 +02:00

52 lines
1.4 KiB
C#

using RMuseum.Models.Divan;
using RMuseum.Models.Divan.ViewModels;
using RSecurityBackend.Models.Generic;
using System;
using System.Threading.Tasks;
namespace RMuseum.Services
{
/// <summary>
/// translation service implementation
/// </summary>
public interface IDivanTranslationService
{
/// <summary>
/// add language
/// </summary>
/// <param name="lang"></param>
/// <returns></returns>
Task<RServiceResult<DivanLanguage>> AddLanguageAsync(DivanLanguage lang);
/// <summary>
/// update an existing language
/// </summary>
/// <param name="updated"></param>
/// <returns></returns>
Task<RServiceResult<bool>> UpdateLangaugeAsync(DivanLanguage updated);
/// <summary>
/// delete language
/// </summary>
/// <param name="id"></param>
/// <returns></returns>
Task<RServiceResult<bool>> DeleteLangaugeAsync(int id);
/// <summary>
/// get langauge by id
/// </summary>
/// <param name="id"></param>
/// <returns></returns>
Task<RServiceResult<DivanLanguage>> GetLanguageAsync(int id);
/// <summary>
/// get all languages
/// </summary>
/// <returns></returns>
Task<RServiceResult<DivanLanguage[]>> GetLanguagesAsync();
}
}