divan/RMuseum/Services/IDiwanTranslationService.cs
Anas Rashid e8f2306422 Rename Ganjoor -> Diwan throughout the code
Projects (GanjooRazor -> DiwanRazor, GanjoorService.sln -> DiwanService.sln), files,
folders, classes, namespaces, settings, API routes (/api/diwan) and DB tables (Diwan*).
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.Diwan;
using RMuseum.Models.Diwan.ViewModels;
using RSecurityBackend.Models.Generic;
using System;
using System.Threading.Tasks;
namespace RMuseum.Services
{
/// <summary>
/// translation service implementation
/// </summary>
public interface IDiwanTranslationService
{
/// <summary>
/// add language
/// </summary>
/// <param name="lang"></param>
/// <returns></returns>
Task<RServiceResult<DiwanLanguage>> AddLanguageAsync(DiwanLanguage lang);
/// <summary>
/// update an existing language
/// </summary>
/// <param name="updated"></param>
/// <returns></returns>
Task<RServiceResult<bool>> UpdateLangaugeAsync(DiwanLanguage 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<DiwanLanguage>> GetLanguageAsync(int id);
/// <summary>
/// get all languages
/// </summary>
/// <returns></returns>
Task<RServiceResult<DiwanLanguage[]>> GetLanguagesAsync();
}
}