add reviewmsg to recitation view model
This commit is contained in:
parent
708eccb551
commit
fb1b00a3df
@ -74,6 +74,7 @@ namespace RMuseum.Models.GanjoorAudio.ViewModels
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
AudioSyncStatusArray = lst.ToArray();
|
AudioSyncStatusArray = lst.ToArray();
|
||||||
|
ReviewMsg = src.ReviewMsg;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -246,5 +247,10 @@ namespace RMuseum.Models.GanjoorAudio.ViewModels
|
|||||||
/// Review Status
|
/// Review Status
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public AudioReviewStatus ReviewStatus { get; set; }
|
public AudioReviewStatus ReviewStatus { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Review Message
|
||||||
|
/// </summary>
|
||||||
|
public string ReviewMsg { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -2341,6 +2341,11 @@
|
|||||||
Review Status
|
Review Status
|
||||||
</summary>
|
</summary>
|
||||||
</member>
|
</member>
|
||||||
|
<member name="P:RMuseum.Models.GanjoorAudio.ViewModels.RecitationViewModel.ReviewMsg">
|
||||||
|
<summary>
|
||||||
|
Review Message
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
<member name="T:RMuseum.Models.GanjoorAudio.ViewModels.UserRecitationProfileViewModel">
|
<member name="T:RMuseum.Models.GanjoorAudio.ViewModels.UserRecitationProfileViewModel">
|
||||||
<summary>
|
<summary>
|
||||||
UserNarrationProfile View Model
|
UserNarrationProfile View Model
|
||||||
|
|||||||
@ -155,9 +155,11 @@ namespace RMuseum.Services.Implementation
|
|||||||
string xml = recitation.LocalXmlFilePath;
|
string xml = recitation.LocalXmlFilePath;
|
||||||
context.Recitations.Remove(recitation);
|
context.Recitations.Remove(recitation);
|
||||||
await context.SaveChangesAsync();
|
await context.SaveChangesAsync();
|
||||||
|
|
||||||
File.Delete(mp3);
|
if(File.Exists(mp3))
|
||||||
File.Delete(xml);
|
File.Delete(mp3);
|
||||||
|
if (File.Exists(xml))
|
||||||
|
File.Delete(xml);
|
||||||
|
|
||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
@ -852,7 +854,8 @@ namespace RMuseum.Services.Implementation
|
|||||||
if (narration.ReviewStatus == AudioReviewStatus.Rejected)
|
if (narration.ReviewStatus == AudioReviewStatus.Rejected)
|
||||||
{
|
{
|
||||||
narration.AudioSyncStatus = (int)AudioSyncStatus.SynchronizedOrRejected;
|
narration.AudioSyncStatus = (int)AudioSyncStatus.SynchronizedOrRejected;
|
||||||
//TODO: delete rejected items files passed a certain period of time in a maintenance job
|
File.Delete(narration.LocalMp3FilePath);
|
||||||
|
File.Delete(narration.LocalXmlFilePath);
|
||||||
}
|
}
|
||||||
narration.ReviewMsg = model.Message;
|
narration.ReviewMsg = model.Message;
|
||||||
_context.Recitations.Update(narration);
|
_context.Recitations.Update(narration);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user